package main

import (
	"cat/proto/pb"
	"context"
	"fmt"
	"google.golang.org/grpc"
)

func main() {

	conn, err := grpc.Dial("localhost:9990", grpc.WithInsecure())
	if err != nil {
		fmt.Println(err)
	}
	defer conn.Close()

	client := pb.NewGreeterClient(conn)
	resp, err := client.SayHello(context.Background(), &pb.HelloRequest{Name: "lull"})
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println(resp)

}
